package com.dalin.framework.util;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class LogUtil {
	private Log log = null;

	public static LogUtil getLogger(Class clazz) {
		return new LogUtil(LogFactory.getLog(clazz));
	}

	private LogUtil(Log log) {
		this.log = log;
	}


	public void debug(Object object) {
		log.debug(object);
	}

	public void debug(Object object, Throwable e) {
		log.debug(object, e);
	}

	public void info(Object object) {
		log.info(object);
	}

	public void info(Object object, Throwable e) {
		log.info(object, e);
	}

	public void warn(Object object) {
		log.warn(object);
	}

	public void warn(Object object, Throwable e) {
		log.warn(object, e);
	}

	public void error(Object object) {
		log.error(object);
	}

	public void error(Object object, Throwable e) {
		log.error(object, e);
	}

	public void fatal(Object object) {
		log.fatal(object);
	}
}
